package com.nutricia.common.lang;

/**
 * @author: huangsheng
 * @date: 2018/4/11
 */
public class BaseResponse {

    /**
     * 成功outCode
     */
    private static final String SUCCESS_CODE = "000000";

    /**
     * 是否成功
     */
    private boolean success = false;

    /**
     * 状态码（默认成功）
     */
    private String code;

    /**
     * 描述信息
     */
    private String message;

    /**
     * Is success boolean.
     *
     * @return the boolean
     */
    public boolean isSuccess() {
        return success;
    }

    /**
     * Sets success.
     *
     * @param success the success
     */
    public void setSuccess(boolean success) {
        this.success = success;
    }

    /**
     * Gets code.
     *
     * @return the code
     */
    public String getCode() {
        return code;
    }

    /**
     * Sets code.
     *
     * @param code the code
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * Gets message.
     *
     * @return the message
     */
    public String getMessage() {
        return message;
    }

    /**
     * Sets message.
     *
     * @param message the message
     */
    public void setMessage(String message) {
        this.message = message;
    }
}
